package org.goyo.main.domain.dao.sale.impl;

import java.util.List;

import org.goyo.common.exception.DBException;
import org.goyo.main.domain.dao.BaseDAO;
import org.goyo.main.domain.dao.sale.ISignInDao;
import org.goyo.main.domain.entity.sale.SignIn;
import org.springframework.stereotype.Repository;

@Repository
public class SignInDaoImpl extends BaseDAO implements ISignInDao{
	
	@Override
	public List<SignIn> findByResourceId(String resourceId) throws DBException {
		String hql = "from SignIn where resourceId=?";
		return this.findObjects(hql, null, new Object[]{resourceId});
	}
}
